#include <entity/FriendInfoEntity.h>
#include <cppwinks/utility/format/Format.h>
#include <iostream>
#include <cppwinks/utility/json/Json.h>
#include <vector> 
#include <string>

using namespace std;
using namespace format;
using namespace json;

FriendInfoEntity::FriendInfoEntity(int id, const std::string& username, const std::string& avatar_url)
: id(id), name(username), avatar_url(avatar_url) {}

// 析构函数的定义
FriendInfoEntity::~FriendInfoEntity() {}

// Get 函数的定义
int FriendInfoEntity::getId() const {
    return id;
}

std::string FriendInfoEntity::getUsername() const {
    return name;
}

std::string FriendInfoEntity::getAvatarUrl() const {
    return avatar_url;
}

// Set 函数的定义
void FriendInfoEntity::setId(int newId) {
    id = newId;
}

void FriendInfoEntity::setUsername(const std::string& newUsername) {
   name = newUsername;
}

void FriendInfoEntity::setAvatarUrl(const std::string& newAvatarUrl) {
    avatar_url = newAvatarUrl;
}